package edu.ccut.saturn.operation.database;

import java.sql.Connection;
import java.util.ArrayList;
import java.util.Map;

import edu.ccut.saturn.component.SaturnData;

public class QueryBySaturnSQL {
	private static edu.ccut.saturn.basecomponent.database.facade.QueryBySaturnSQL facade = null;
	private static QueryBySaturnSQL instance  = new QueryBySaturnSQL();
    private QueryBySaturnSQL(){
    	facade = new edu.ccut.saturn.basecomponent.database.facade.QueryBySaturnSQL();
    };
    public static QueryBySaturnSQL getInstance(){
    	return instance;
    }

	public ArrayList<SaturnData> execute(String fullKey ,String sqlKey,Map<String, Object> paramMap,
			Connection conn) throws Exception {
		return (ArrayList<SaturnData>)facade.execute(fullKey, sqlKey, paramMap, conn);
	}
}
